﻿using System;
using System.Collections.ObjectModel;
namespace GeneratorLib.DB
{
    public interface IDBProvider
    {
        IConnection CreateNew();
        IConnection CreateNew(string name, string connectStr);
        bool EditConnection(IConnection connection);
        string DBProviderName { get; }
    }

    public interface IDBProviderManager
    {
        ReadOnlyCollection<IDBProvider> DBProviders { get; }
        void Clear();
        void Register(IDBProvider DBProvider);
        void UnRegister(IDBProvider DBProvider);
    }


}
